﻿@model Sharp.WebBooter.Areas.CMS.Models.GatherViewModel
@{
    ViewBag.Title = "Node";
}
<style>
       .GatherNode table {
        border-spacing: 3px;
        width: 98%;
    }
</style>
<div class="modal fade">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span></button>
                <h4 class="modal-title" id="myModalLabel">@Model.PageTitle</h4>
            </div>
            <div class="modal-body GatherNode" id="modalcontent">
                @using (Html.Bootstrap().BeginForm(c => c.Horizontal()))
                {
                    @Html.ValidationSummary()
                    <fieldset id="CategoryRuleArea" data-bind="visible:!isSpider">
                        <legend><strong>栏目匹配规则</strong></legend>
                        <table class="text-center">
                            <tr>
                                <td class="text-right" style="width: 140px">
                                    扫描栏目页范围：
                                </td>
                                <td class="text-left">
                                    @Html.Bootstrap().TextareaFor(x => x.CategoryArea)
                                </td>
                            </tr>
                            <tr>
                                <td class="text-right">
                                    文章页链接：
                                </td>
                                <td class="text-left">
                                    @Html.Bootstrap().TextareaFor(x => x.ContentPageUrl)
                                </td>
                            </tr>
                            <tr>
                                <td class="text-right">
                                    栏目下一页：
                                </td>
                                <td class="text-left">
                                    @Html.Bootstrap().TextareaFor(x => x.CategoryPageNextUrl)
                                </td>
                            </tr>
                            <tr>
                                <td class="text-right">忽略采集的URL：</td>
                                <td class="text-left">
                                    @Html.Bootstrap().TextareaFor(x => x.IgnoreUrl)
                                    正则表达式
                                </td>
                            </tr>

                        </table>
                    </fieldset>
                        <br>
                        <fieldset>
                            <legend><strong>文章匹配规则</strong></legend>
                            <table class="text-center">
                                <tr>
                                    <td class="text-right" style="width: 140px">
                                        标题： <span class="style1">*</span>
                                    </td>
                                    <td>
                                        @Html.Bootstrap().TextareaFor(x => x.ContentTitle)

                                    </td>
                                </tr>
                                <tr>
                                    <td class="text-right">
                                        内容：
                                    </td>
                                    <td>
                                        @Html.Bootstrap().TextareaFor(x => x.Content)
                                    </td>
                                </tr>
                                <tr>
                                    <td class="text-right">
                                        作者：
                                    </td>
                                    <td>
                                        @Html.Bootstrap().TextareaFor(x => x.Author)
                                    </td>
                                </tr>
                                <tr>
                                    <td class="text-right">
                                        来源：
                                    </td>
                                    <td>
                                        @Html.Bootstrap().TextareaFor(x => x.ComeFrom)

                                    </td>
                                </tr>
                                <tr>
                                    <td class="text-right">
                                        日期：
                                    </td>
                                    <td>
                                        @Html.Bootstrap().TextareaFor(x => x.UpdateTime)

                                    </td>
                                </tr>
                                <tr>
                                    <td class="text-right">
                                        文章页下一页地址：
                                    </td>
                                    <td>
                                        @Html.Bootstrap().TextareaFor(x => x.ContentPageNextUrl)
                                    </td>
                                </tr>
                                <tr>
                                    <td class="text-right">全文文章页地址：</td>
                                    <td>
                                        @Html.Bootstrap().TextareaFor(x => x.FullArticleUrl)

                                    </td>
                                </tr>
                                
                            </table>
                        </fieldset>

              
                    <input type="hidden" value="@Model.Id" name="Id">
                    @Html.HiddenFor(x => x.ParentId)
                }
            </div>
            <div class="modal-footer">
                @Html.Bootstrap().Button("保存").Style(BootstrapStyle.Primary).Click("window.app.saveForm(event,'" + @Url.Action("Save") + "');")
                @Html.Bootstrap().Button("关闭").Style(BootstrapStyle.Default).Attribute("data-dismiss", "modal")
            </div>
        </div>
    </div>
</div>